<template>
	<el-form :inline="true">
		<el-form-item>
			<el-button type="primary" :icon="Plus" @click="saveClick">新建</el-button>
		</el-form-item>
		
		<!-- 默认插槽 -->
		<slot></slot>
		
		<el-form-item>
			<el-button type="primary"  @click="selectClick">查询</el-button>
		</el-form-item>
	</el-form>
	
</template>

<script setup lang="ts">
	import { Plus } from '@element-plus/icons-vue'
	
	const emits = defineEmits(['click','select']);
	
	const saveClick = ()=>{
		emits("click");
	}
	
	const selectClick = ()=>{
		emits("select");
	}
	
	
</script>

<style>
</style>